/**
 * Project  : monkey
 * Author   : Wu Tian Qiang
 * Date     : 2016/10/18 20:49:30
 */
Ext.define('Monkey.view.user.UserModel', {
    extend: 'Ext.app.ViewModel',
    alias: 'viewmodel.vm-user',

    data: {
        isAdd: false,
        id: 0,
        account: '',
        password: '',
        nick: '',
        email: '',
        mobile: '',
        status: 'NORMAL',
        sex: 'MAN',
        cardId: '',
        birthday: '',
        QQ: '',
        remark: '',
        address: '',
        orgId: ''
    },


    setModelData: function (data) {
        this.data.id = data.id;
        this.data.account = data.account;
        this.data.password = data.password;
        this.data.nick = data.nick;
        this.data.email = data.email;
        this.data.mobile = data.mobile;
        this.data.status = data.status;
        this.data.sex = data.sex;
        this.data.cardId = data.cardId;
        this.data.birthday = data.birthday;
        this.data.QQ = data.QQ;
        this.data.remark = data.remark;
        this.data.address = data.address;
    }
});